package com.jiuqian.demo.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.jiuqian.common.core.base.BaseModel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@TableName("area")
@ApiModel("地区")
public class Area extends BaseModel {
	private static final long serialVersionUID = 2172546391855094916L;

	@ApiModelProperty("主键ID")
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	@ApiModelProperty("父ID")
	@TableField("parentid")
	private Integer parentid;

	@ApiModelProperty("名称")
	@TableField("name")
	private String name;

	@ApiModelProperty("简称")
	@TableField("shortname")
	private String shortname;

	@ApiModelProperty("经度")
	@TableField("lng")
	private String lng;

	@ApiModelProperty("伟度")
	@TableField("lat")
	private String lat;

	@ApiModelProperty("级别")
	@TableField("level")
	private Short level;

	@ApiModelProperty("所有父级")
	@TableField("position")
	private String position;

	@ApiModelProperty("区域内排序")
	@TableField("sort")
	private Short sort;

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getParentid() {
		return this.parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getShortname() {
		return this.shortname;
	}

	public void setShortname(String shortname) {
		this.shortname = shortname;
	}

	public String getLng() {
		return this.lng;
	}

	public void setLng(String lng) {
		this.lng = lng;
	}

	public String getLat() {
		return this.lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public Short getLevel() {
		return this.level;
	}

	public void setLevel(Short level) {
		this.level = level;
	}

	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public Short getSort() {
		return this.sort;
	}

	public void setSort(Short sort) {
		this.sort = sort;
	}
}
